export const shallowCopy = (target) => {
	const tarType = Object.prototype.toString.call(target)
	if(tarType==='[object Object]'){
		return {...target}
	}else if(tarType === '[object Array]'){
		return target.slice()
	}else{
		return target
	}
}